﻿using System;

class PointWithinShapes
{
    static void Main()
    {
        int coordY;
        int coordX;

        Console.WriteLine("Type coordinate X:");
        bool isCoorXValid = int.TryParse(Console.ReadLine(), out coordX);
        Console.WriteLine("Type coordinate Y:");
        bool isCoorYValid = int.TryParse(Console.ReadLine(), out coordY);

        double vector = Math.Sqrt(Math.Pow(coordX - 1, 2) + Math.Pow(coordY - 1, 2));

        bool isPointInTheCircle;
        bool isPointInTheRectangle;

        if (isCoorXValid && isCoorYValid)
        {
            if (vector <= 3)
            {
                isPointInTheCircle = true;
            }
            else
            {
                isPointInTheCircle = false;
            }

            if (coordX >= -1 && coordX <= 5 && coordY >= -1 && coordY <= 1)
            {
                isPointInTheRectangle = true;
            }
            else
            {
                isPointInTheRectangle = false;
            }

            Console.WriteLine("It is {0} that the point is in the circle and {1} that is in the rectangle!",isPointInTheCircle,isPointInTheRectangle);
        }
        else
        {
            Console.WriteLine("Invalid coordinates!!!");
        }
    }
}